/*
* Sun Public License Notice
*
* The contents of this file are subject to the Sun Public License
* Version 1.0 (the "License"). You may not use this file except in
* compliance with the License. A copy of the License is available at
* http://www.sun.com/
*
* The Original Code is Forte for Java, Community Edition. The Initial
* Developer of the Original Code is Sun Microsystems, Inc. Portions
* Copyright 1997-2000 Sun Microsystems, Inc. All Rights Reserved.
*/
package org.netbeans.examples.layoutmanager.twocolumn;
/**
*
* @author ttran
* @version
*/
public class TestDialog extends javax.swing.JDialog {
/** Creates new form TestDialog */
public TestDialog(java.awt.Frame parent,boolean modal) {
super (parent, modal);
initComponents ();
pack ();
}
/** This method is called from within the constructor to
* initialize the form.
* WARNING: Do NOT modify this code. The content of this method is
* always regenerated by the FormEditor.
*/
private void initComponents () {//GEN-BEGIN:initComponents
jLabel1 = new javax.swing.JLabel ();
_name = new javax.swing.JTextField ();
jLabel2 = new javax.swing.JLabel ();
_surname = new javax.swing.JTextField ();
jLabel3 = new javax.swing.JLabel ();
_maidenName = new javax.swing.JTextField ();
getContentPane ().setLayout(new org.netbeans.examples.layoutmanager.twocolumn.TwoColumnLayout(10, 4));
addWindowListener (new java.awt.event.WindowAdapter () {
public void windowClosing (java.awt.event.WindowEvent evt) {
closeDialog (evt);
}
}
);
jLabel1.setText ("Name:");
getContentPane ().add(jLabel1, org.netbeans.examples.layoutmanager.twocolumn.TwoColumnLayout.RIGHT);
_name.setColumns (20);
getContentPane ().add(_name, org.netbeans.examples.layoutmanager.twocolumn.TwoColumnLayout.FILL);
jLabel2.setText ("Surname:");
getContentPane ().add(jLabel2, org.netbeans.examples.layoutmanager.twocolumn.TwoColumnLayout.RIGHT);
getContentPane ().add(_surname, org.netbeans.examples.layoutmanager.twocolumn.TwoColumnLayout.FILL);
jLabel3.setText ("Maiden name:");
getContentPane ().add(jLabel3, org.netbeans.examples.layoutmanager.twocolumn.TwoColumnLayout.RIGHT);
getContentPane ().add(_maidenName, org.netbeans.examples.layoutmanager.twocolumn.TwoColumnLayout.FILL);
}//GEN-END:initComponents
/** Closes the dialog */
private void closeDialog(java.awt.event.WindowEvent evt) {//GEN-FIRST:event_closeDialog
setVisible (false);
dispose ();
}//GEN-LAST:event_closeDialog
/**
* @param args the command line arguments
*/
public static void main (String args[]) {
TestDialog dlg = new TestDialog (new javax.swing.JFrame(), true);
dlg.pack();
dlg.show ();
}
// Variables declaration - do not modify//GEN-BEGIN:variables
private javax.swing.JLabel jLabel1;
private javax.swing.JTextField _name;
private javax.swing.JLabel jLabel2;
private javax.swing.JTextField _surname;
private javax.swing.JLabel jLabel3;
private javax.swing.JTextField _maidenName;
// End of variables declaration//GEN-END:variables
}